package com.cntcdt.api.service.impl;

import java.util.List;

import com.cntcdt.api.db.dao.GroupDeviceDayDivideCntDemoDao;
import com.cntcdt.api.db.model.GroupDeviceDayDivideCntDemoModel;
import com.cntcdt.api.db.model.GroupDeviceDayDivideCntModel;
import com.cntcdt.api.service.GroupDeviceDayDivideCntDemoService;

public class GroupDeviceDayDivideCntDemoServiceImpl implements GroupDeviceDayDivideCntDemoService {

	@Override
	public GroupDeviceDayDivideCntDemoModel findByYesterday(int gourpId) {
		return GroupDeviceDayDivideCntDemoDao.getInstance().findByYesterday(gourpId);
	}

	@Override
	public GroupDeviceDayDivideCntDemoModel findByThisMonth(int groupUserId) {
		return GroupDeviceDayDivideCntDemoDao.getInstance().findByThisMonth(groupUserId);
	}

	@Override
	public List<GroupDeviceDayDivideCntDemoModel> findByLastSevenDayData(int groupUserId) {
		return GroupDeviceDayDivideCntDemoDao.getInstance().findByLastSevenDayData(groupUserId);
	}

	@Override
	public GroupDeviceDayDivideCntDemoModel findByYesterday(int gourpId, String terminal) {
		return GroupDeviceDayDivideCntDemoDao.getInstance().findByYesterday(gourpId, terminal);
	}

	@Override
	public GroupDeviceDayDivideCntDemoModel findByThisMonth(int groupUserId, String terminal) {
		return GroupDeviceDayDivideCntDemoDao.getInstance().findByThisMonth(groupUserId, terminal);
	}

	@Override
	public List<GroupDeviceDayDivideCntDemoModel> findByLastSevenDayData(int groupUserId, String terminal) {
		return GroupDeviceDayDivideCntDemoDao.getInstance().findByLastSevenDayData(groupUserId, terminal);
	}

	@Override
	public List<GroupDeviceDayDivideCntDemoModel> findBySortTimeSum(int groupUserId, long sortTime) {
		return GroupDeviceDayDivideCntDemoDao.getInstance().findBySortTimeSum(groupUserId, sortTime);
	}

	@Override
	public List<GroupDeviceDayDivideCntDemoModel> findMonthDataBySortTime(int groupUserId, long sortTime) {
		return GroupDeviceDayDivideCntDemoDao.getInstance().findMonthDataBySortTime(groupUserId, sortTime);
	}

	@Override
	public List<GroupDeviceDayDivideCntDemoModel> findBySortTimeSum(int groupUserId, long sortTime, String terminal) {
		return GroupDeviceDayDivideCntDemoDao.getInstance().findBySortTimeSum(groupUserId, sortTime, terminal);
	}

	@Override
	public List<GroupDeviceDayDivideCntDemoModel> findMonthDataBySortTime(int groupUserId, long sortTime,
			String terminal) {
		return GroupDeviceDayDivideCntDemoDao.getInstance().findMonthDataBySortTime(groupUserId, sortTime, terminal);
	}

	@Override
	public List<GroupDeviceDayDivideCntDemoModel> findByDateTime(int groupUserId, String time) {
		return GroupDeviceDayDivideCntDemoDao.getInstance().findByDateTime(groupUserId, time);
	}

	@Override
	public List<GroupDeviceDayDivideCntDemoModel> findByDate(int groupUserId, String startDate, String endDate) {
		// TODO Auto-generated method stub
		return GroupDeviceDayDivideCntDemoDao.getInstance().findByDate(groupUserId, startDate, endDate);
	}

	@Override
	public List<GroupDeviceDayDivideCntDemoModel> findSingleDeviceByDate(int groupUserId, String terminal,
			String startDate, String endDate) {
		// TODO Auto-generated method stub
		return GroupDeviceDayDivideCntDemoDao.getInstance().findSingleDeviceByDate(groupUserId, terminal, startDate,
				endDate);
	}

}
